package model

import (
	"gorm.io/gorm"
	"time"
)

type Classroom struct {
	gorm.Model
	//校区id
	CampusId uint `json:"campus_id" gorm:"Campus_id"`
	//教学楼id
	BuildingId uint `json:"building_id" gorm:"building_id"`
	//教室名称
	Location string `json:"location" gorm:"location"`
	//座位总数
	Seating int `json:"seating" gorm:"seating"`
	// 空闲座位
	FreeSeat int `json:"free_seat" gorm:"-"`
	//是否是合教(0-不是，1-是)
	IsLargeClassroom int `json:"is_large_classroom" gorm:"is_large_classroom"`
	//状态(0-关闭，1-正常)
	ClassroomStatus int `json:"classroom_status" gorm:"classroom_status"`
	//锁定开始时间
	LockStartTime *time.Time `json:"lock_start_time"`
	//锁定结束时间
	LockEndTime *time.Time `json:"lock_end_time"`
	//教室属性 如:计算机教室
	ClassroomProperty string `json:"classroom_property"`
}
